﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x0200003D RID: 61
	public class UInt64Formatter : IMessagePackFormatter<ulong>
	{
		// Token: 0x060000E3 RID: 227 RVA: 0x0000450B File Offset: 0x0000290B
		private UInt64Formatter()
		{
		}

		// Token: 0x060000E4 RID: 228 RVA: 0x00004513 File Offset: 0x00002913
		public int Serialize(ref byte[] bytes, int offset, ulong value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteUInt64(ref bytes, offset, value);
		}

		// Token: 0x060000E5 RID: 229 RVA: 0x0000451D File Offset: 0x0000291D
		public ulong Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadUInt64(bytes, offset, out readSize);
		}

		// Token: 0x04000031 RID: 49
		public static readonly UInt64Formatter Instance = new UInt64Formatter();
	}
}
